package cc.yiueil;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.time.LocalDateTime;
import java.util.Date;

@Controller
@RequestMapping(value = "/custom")
public class CustomController {
    @ResponseBody
    @RequestMapping(value = "test")
    public String test(Date date, LocalDateTime localDateTime) {
        System.out.println("date = " + date);
        System.out.println("localDateTime = " + localDateTime);
        return null;
    }
}
